<template>
  <el-row class="mb-4">
    <table width="100%">
        <tr>
          <th width="15%">属性名</th>
          <th>说明</th>
          <th width="15%">类型</th>
          <th width="15%">默认值</th>
        </tr>
        <tr v-for="item in attrs">
          <td>{{item.name}}</td>
          <td>{{item.desc}}</td>
          <td>{{item.type}}</td>
          <td>{{item.defaultValue}}</td>
        </tr>
      </table>
  </el-row>
  <el-row class="mb-4">
    <el-button>Default</el-button>
    <el-button type="primary">Primary</el-button>
    <el-button type="success">Success</el-button>
    <el-button type="info">Info</el-button>
    <el-button type="warning">Warning</el-button>
    <el-button type="danger">Danger</el-button>
  </el-row>

  <el-row class="mb-4">
    <el-button plain>Plain</el-button>
    <el-button type="primary" plain>Primary</el-button>
    <el-button type="success" plain>Success</el-button>
    <el-button type="info" plain>Info</el-button>
    <el-button type="warning" plain>Warning</el-button>
    <el-button type="danger" plain>Danger</el-button>
  </el-row>

  <el-row class="mb-4">
    <el-button round>Round</el-button>
    <el-button type="primary" round>Primary</el-button>
    <el-button type="success" round>Success</el-button>
    <el-button type="info" round>Info</el-button>
    <el-button type="warning" round>Warning</el-button>
    <el-button type="danger" round>Danger</el-button>
  </el-row>

  <el-row>
    <el-button :icon="Search" circle />
    <el-button type="primary" :icon="Edit" circle />
    <el-button type="success" :icon="Check" circle />
    <el-button type="info" :icon="Message" circle />
    <el-button type="warning" :icon="Star" circle />
    <el-button type="danger" :icon="Delete" circle />
  </el-row>
</template>
<script setup>
import {
  Check,
  Delete,
  Edit,
  Message,
  Search,
  Star,
} from '@element-plus/icons-vue'
</script>
<script>
export default{
  data(){
    return {
      attrs:[{
              "name":"size",
              "desc":"尺寸",
              "type":"枚举[large|default|small]",
              "defaultValue":"-"
            },{
              "name":"type",
              "desc":"类型",
              "type":"枚举[primary|success|warning|danger|info|text(delete)]",
              "defaultValue":"-"
            },{
              "name":"plain",
              "desc":"是否为朴素按扭",
              "type":"boolean",
              "defaultValue":"false"
            },{
              "name":"text",
              "desc":"是否为文字按钮",
              "type":"boolean",
              "defaultValue":"false"
            },{
              "name":"bg",
              "desc":"是否显示文字按钮背景色",
              "type":"boolean",
              "defaultValue":"false"
            },{
              "name":"link",
              "desc":"是否为链接按钮",
              "type":"boolean",
              "defaultValue":"false"
            },{
              "name":"round",
              "desc":"是否为圆角按钮",
              "type":"boolean",
              "defaultValue":"false"
            },{
              "name":"circle",
              "desc":"是否为圆形按钮",
              "type":"boolean",
              "defaultValue":"false"
            },{
              "name":"loading",
              "desc":"是否为加载中状态",
              "type":"boolean",
              "defaultValue":"false"
            },{
              "name":"loading-icon",
              "desc":"自定义加载中状态图标组件",
              "type":"string/Component",
              "defaultValue":"Loading"
            },{
              "name":"disabled",
              "desc":"按钮是否为禁用状态",
              "type":"boolean",
              "defaultValue":"false"
            },{
              "name":"icon",
              "desc":"图标组件",
              "type":"string/Component",
              "defaultValue":"-"
            },{
              "name":"autofocus",
              "desc":"原生autofocus属性",
              "type":"boolean",
              "defaultValue":"false"
            },{
              "name":"native-type",
              "desc":"原生type属性",
              "type":"枚举['button'| 'submit'| 'reset']",
              "defaultValue":"-"
            },{
              "name":"auto-insert-space",
              "desc":"自动在两个中文字符之间插入空格",
              "type":"boolean",
              "defaultValue":"-"
            },{
              "name":"color",
              "desc":"自定义按钮颜色, 并自动计算hover和active触发后的颜页",
              "type":"string",
              "defaultValue":"-"
            },{
              "name":"dark",
              "desc":"dark 模式, 意味着自动设置 color 为 dark 模式的颜色",
              "type":"boolean",
              "defaultValue":"false"
            },{
              "name":"tag",
              "desc":"自定义元素标签",
              "type":"string/Component",
              "defaultValue":"button"
            }

          ]
    }
  }
}
</script>
<style lang="scss">
.a {

}
</style>